﻿@{
    ViewBag.Title = "Index";
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>管理中心 - 佳饰家</title>
    <link href="~/Scripts/easyui/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/Scripts/easyui/themes/icon.css" rel="stylesheet" />
    <script type="text/javascript" src="~/Scripts/easyui/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="~/Scripts/easyui/jquery.easyui.min.js"></script>
    <style type="text/css">
        #topmenu { text-align: right; padding-right: 20px; }
            #topmenu span { display: inline-block; padding: 1px 3px; text-decoration: none; color: #fff; }
            #topmenu a { display: inline-block; padding: 1px 3px; text-decoration: none; color: #fff; }
                #topmenu a:hover { text-decoration: underline; }
    </style>
    <script type="text/javascript">
        $(function () {
            $('#tt').tabs({
                onLoad: function (panel) {
                    var plugin = panel.panel('options').title;
                }
            });
        });
        function addNewTab(tab) {
            var tabName = $(tab).text()
            var href = $(tab).attr("href");
            if ($('#tt').tabs('exists', tabName)) {
                $('#tt').tabs('select', tabName);
            } else {
                var tabContent = '<iframe scrolling="auto" frameborder="0" src="' + href + '" style="width:100%;height:99%;overflow:hidden;"></iframe>'
                $('#tt').tabs('add', {
                    title: tabName,
                    content: tabContent,
                    closable: true
                });
            }
            return false;
        }
    </script>
</head>
<body class="easyui-layout" style="text-align: left">
    <div region="north" border="false" style="background: #666; height: 63px; overflow: hidden;">
        <div id="header-inner" style="margin-left: 150px; margin-top: 14px;">
            <a href="/Home" style="color: #fff; font-size: 24px; font-weight: bold; text-decoration: none">家饰佳管理后台</a>
            <div id="topmenu">
                <span>欢迎你, Contact</span>
                <a href="/Account/Logoff">注销</a>
            </div>
        </div>
    </div>
    <div region="west" border="false" split="true" title="管理菜单" style="width: 150px; padding: 5px;">
        <ul class="easyui-tree">
            <li iconcls="icon-base"><span>产品管理</span>
                <ul>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/ProductCategories">分类管理</a></li>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/Products">产品管理</a></li>
                </ul>
            </li>
            <li iconcls="icon-base"><span>产品管理</span>
                <ul>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/Articles">资讯管理</a></li>
                </ul>
            </li>

            <li iconcls="icon-layout"><span>关于我们</span>
                <ul>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/CompanyInfos">关于我们</a></li>
                </ul>
            </li>
            <li iconcls="icon-layout"><span>质量控制</span>
                <ul>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/Quanlities">质量控制</a></li>
                </ul>
            </li>
            <li iconcls="icon-layout"><span>服务支持</span>
                <ul>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/Services">服务支持</a></li>
                </ul>
            </li>
            <li iconcls="icon-layout"><span>联系订购</span>
                <ul>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/ContactNOrders">联系订购</a></li>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/Orders">在线订单</a></li>
                </ul>
            </li>
            <li iconcls="icon-layout"><span>友情连接</span>
                <ul>
                    <li iconcls="icon-gears"><a onclick="addNewTab(this);return false;" href="/Admin/Links">友情链接</a></li>
                </ul>
            </li>

        </ul>
    </div>
    <div region="center" border="false">
        <div id="tt" class="easyui-tabs" fit="true" border="false" plain="true">
            <div title="首页">
                <div style="padding: 20px;">
                    欢迎您来到佳饰家后台管理系统，请选择左侧菜单进行网站管理。
                </div>
            </div>
        </div>
    </div>
</body>
</html>
